package com.wzk.canalsync.template;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Author: WangZiKang
 * @Date: 2024/12/29 13:09
 */

//实体类模板字段一定要和mysql的对应上
@Data
@EqualsAndHashCode(callSuper = false)
public class PostBackDataTemplate {

    private Integer id;

    private Integer postbackType;   //postback类型

    private String afSiteid;

    private Integer adid;

    private String adset;

    private String adsetId;

    private String afSubSiteid;

    private String atType;

    private String blockedReason;

    private String blockedReasonValue;

    private String blockedSubReason;

    private String geo;

    private String platform;

    private String postbackId;

    private String clickid;

    private String affSub1;

    private String gaid;

    private String idfa;

    private String appId;

    private String adType;

    private String installTimestamp;

    private String clickTimestamp;

    private String channel;

    private String matchType;

    private String eventName;

    private BigDecimal eventRevenue;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate date;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime hour;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime postbackTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime clickTime;

    //clickid解析后存入   显示在前端的
    private String advertiser;
    private Integer channelId;
    private Integer channelAdId;
    private String adsName;
    private String attribution;
    private String ip;
    private String realClickid;
    private String deviceid;
    private String siteid;
    private String packageName;
    private String afPid;
    private String isSend;



}
